#-------------------------------------------------
#
# Project created by QtCreator 2019
# This project is a convergent framework system.
#
#-------------------------------------------------

#include
include(../../BaseTotalPri/BaseTotal.pri)

# CODE   GBK UTF-8 UTF-16BE
win32{
    CODECFORSRC=GBK
}else:unix{
    CODECFORSRC=UTF-8
}


# TYPE  app lib sudbirs
TEMPLATE = lib

# QT_MODEL core gui sql network widget
QT += core
QT -= gui

# CONFIG
CONFIG += build_all
CONFIG += debug_and_relased
win32{
    CONFIG += c++11
}else:unix{
    QMAKE_CXXFLAGS += -std=c++0x
}
# TARGET
TARGET = $$qtLibraryTarget(CFSCore)
TARGET = CFSCore

#PROJECT_PATH
INCLUDE_DIR  = $${DEV_HOME}/include
DEST_DIR_D   = $${DEV_HOME}/dbin$${QT_VERSION}
DEST_DIR_R   = $${DEV_HOME}/rbin$${QT_VERSION}
LIB_DIR      = $${DEV_HOME}/libs


# OUT_INFO
win32{
CONFIG(debug,debug|release){
    DESTDIR = $${DEST_DIR_D}
    TARGET = $$member(TARGET, 0)
    LIBS  += -ldbghelp
}
CONFIG(release,debug|release){
    DESTDIR = $${DEST_DIR_R}
    TARGET = $$member(TARGET, 0)
    LIBS  += -ldbghelp
}
}
else:unix{
    CONFIG(debug,debug|release){
    DESTDIR = $${DEST_DIR_D}
}
    CONFIG(release,debug|release){
    DESTDIR = $${DEST_DIR_R}
}
}

#ASSERTIONS
DEFINES += CORE_LIBRARY
DEFINES += QT_DEPRECATED_WARNINGS

# INCLUDE_PATH
INCLUDEPATH += $${INCLUDE_DIR}


#SOURCES_FILE
SOURCES += \
    CFSBackTrace.cpp \
    #CFSBinaryFileDescriptor.cpp \
    CFSBooleanMapper.cpp \
    CFSCallback.cpp \
    CFSCommandLineParser.cpp \
    CFSCoreTestingUtilities.cpp \
    CFSDependencyGraph.cpp \
    CFSErrorLogAbstractMessageHandler.cpp \
    CFSErrorLogAbstractModel.cpp \
    CFSErrorLogFDMessageHandler.cpp \
    CFSErrorLogLevel.cpp \
    CFSErrorLogQtMessageHandler.cpp \
    CFSErrorLogStreamMessageHandler.cpp \
    CFSErrorLogTerminalOutput.cpp \
    CFSException.cpp \
    CFSFileLogger.cpp \
    CFSHighPrecisionTimer.cpp \
    CFSLinearValueProxy.cpp \
    CFSLogger.cpp \
    CFSModelTester.cpp \
    CFSScopedCurrentDir.cpp \
    CFSSetName.cpp \
    CFSUtils.cpp \
    CFSValueProxy.cpp \
    CFSWorkflow.cpp \
    CFSWorkflowStep.cpp


# HEADERS_FILE
HEADERS += \
        core_global.h  \
        CFSAbstractFactory.h \
        CFSAbstractFactory.tpp \
        CFSAbstractFileBasedFactory.h \
        CFSAbstractFileBasedFactory.tpp \
        CFSAbstractLibraryFactory.h \
        CFSAbstractLibraryFactory.tpp \
        CFSAbstractObjectFactory.h \
        CFSAbstractObjectFactory.tpp \
        CFSAbstractPluginFactory.h \
        CFSAbstractPluginFactory.tpp \
        CFSAbstractQObjectFactory.h \
        CFSAbstractQObjectFactory.tpp \
        CFSBackTrace.h \
        #CFSBinaryFileDescriptor.h \
        CFSBooleanMapper.h \
        CFSCallback.h \
        CFSCommandLineParser.h \
        CFSCompilerDetections_p.h \
        #CFSCorePythonQtDecorators.h \
        CFSCoreTestingMacros.h \
        CFSCoreTestingUtilities.h \
        CFSCoreTestingUtilities.tpp \
        CFSDependencyGraph.h \
        CFSErrorLogAbstractMessageHandler.h \
        CFSErrorLogAbstractModel.h \
        CFSErrorLogContext.h \
        CFSErrorLogFDMessageHandler.h \
        CFSErrorLogFDMessageHandler_p.h \
        CFSErrorLogLevel.h \
        CFSErrorLogQtMessageHandler.h \
        CFSErrorLogStreamMessageHandler.h \
        CFSErrorLogTerminalOutput.h \
        CFSException.h \
        CFSFileLogger.h \
        CFSHighPrecisionTimer.h \
        CFSLinearValueProxy.h \
        CFSLogger.h \
        CFSModelTester.h \
        CFSPimpl.h \
        CFSScopedCurrentDir.h \
        CFSSetName.h \
        CFSSingleton.h \
        CFSUtils.h \
        CFSValueProxy.h \
        CFSWorkflow.h \
        CFSWorkflowStep.h \
        CFSWorkflowStep_p.h \
        CFSWorkflowTransitions.h \
        CFSWorkflow_p.h

# FORMS_FILE
FORMS += 

# RC_FILE
RC_FILE =

#RESOURCES
RESOURCES +=


# OTHER_FILE
OTHER_FILES +=

# BUILD_FILE
QMAKE_CXXFLAGS +=

# DEPENDPATH
DEPENDPATH +=

# INSTALLS
unix {
    target.path = /usr/lib
    INSTALLS += target
}
